#include <stdio.h> 
#include <math.h>
int main()
{
	int a = 0;
	int num = 0;
	scanf("%d", &a);
	for ( int i = 2; i <= sqrt(a); i++ ) {
		if ( a % i == 0 ) {
			int b = a / i;
			if ( b == i ) {
				num	+= 1;
			}
			else {
				num	+= 2;
			}
		}
	}
	if ( a == 1 ) {
		num	+= 1;
	}
	else {
		num	+= 2;
	}
	printf("%d", num);
	return 0;
}

